package com.ruoyi.purchase.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.purchase.domain.PoPurchase;
import com.ruoyi.purchase.service.PoPurchaseService;
import com.ruoyi.purchase.mapper.PoPurchaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DY
* @description 针对表【po_purchase】的数据库操作Service实现
* @createDate 2022-01-04 11:32:47
*/
@Service
public class PoPurchaseServiceImpl extends ServiceImpl<PoPurchaseMapper, PoPurchase>
    implements PoPurchaseService{

    @Autowired
    private PoPurchaseMapper poPurchaseMapper;

    @Override
    public List<PoPurchase> findPurList(PoPurchase poPurchase) {
        return poPurchaseMapper.findPurList(poPurchase);
    }

    @Override
    public boolean updateStatus(PoPurchase poPurchase) {
        return poPurchaseMapper.updateStatus(poPurchase);
    }

    @Override
    public List<PoPurchase> findPurCheckList(PoPurchase poPurchase) {
        return poPurchaseMapper.findPurCheckList(poPurchase);
    }

    @Override
    public boolean modifyStatus() {
        return poPurchaseMapper.modifyStatus();
    }
}




